/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dip.dipviolation;

/**
 *
 * @author given
 */
public class MasterCard {
    private double amountDue;
    private String cardNumber;
    private String signature;
    private ValidatePayment validate = new ValidatePayment();

    public void setSignature(String signature) {
        this.signature = signature;
    }    
   
    public void setAmount(double amountDue) {
        this.amountDue = amountDue;
        validate.setAmount(this.amountDue);
    }
    
    public double getAmount() {
        return amountDue;
    }
    
    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }    
    
    public boolean checkPassed(){
        return validate.passed();
    }
   
}
